eef808418d91f6184e3754ab2be7051ee1e4505d,src/main/java/org/graylog/plugins/threatintel/whois/ip/WhoisLookupIpFunction.java,WhoisLookupIpFunction,evaluate,#FunctionArgs#EvaluationContext#,32
Before Change
try {
return provider.lookup(ip);
} catch (Exception e) {
LOG.error("Could not run WHOIS lookup for IP [{}].", ip, e);
return null;
}
}
After Change
return null;
}
if (prefix == null) {
LOG.error("NULL prefix parameter passed to global IP lookup.");
return null;
}
LOG.debug("Running WHOIS lookup for IP [{}] with prefix [{}].", ip, prefix);
try {
return provider.lookup(ip, prefix.trim());
} catch (Exception e) {
LOG.error("Could not run WHOIS lookup for IP [{}] with prefix [{}].", ip, prefix, e);
return null;
}
}